package com.example.emojibase;

import com.example.emojibase.pojo.Emoji;
import com.example.emojibase.pojo.EmojiBase64;
import com.example.emojibase.pojo.Reply;
import com.example.emojibase.pojo.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface AuthApiService {
    @POST("/User/login")
    Call<Reply> login(@Body User user);
    @POST("/User/register")
    Call<Reply> register(@Body User user,@Query("verification") String verification);
    @GET("/Common/getEmailVerificationCode")
    Call<Reply> sendValidation(@Query("emailAddress") String email);
    @GET("/Emoji/getEmojiByPage")
    Call<Reply<List<EmojiBase64>>> getEmojiByPage(@Query("pageSize")int pageSize, @Query("current")int current);
}